<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: SPI Peripheral</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__spi__peripheral.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">SPI Peripheral<div class="ingroups"><a class="el" href="group__bootloader.html">Bootloader</a> &raquo; <a class="el" href="group__peripherals.html">Peripheral Definitions</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>SPI peripheral interface.  
<a href="#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for SPI Peripheral:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="group__spi__peripheral.svg" width="308" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structspi__transfer__info__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#structspi__transfer__info__t">spi_transfer_info_t</a></td></tr>
<tr class="memdesc:structspi__transfer__info__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">Synchronization state between SPI ISR and read/write functions.  <a href="group__spi__peripheral.html#structspi__transfer__info__t">More...</a><br /></td></tr>
<tr class="separator:structspi__transfer__info__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga935bb46e0b77b139a47c827b5812a540"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga935bb46e0b77b139a47c827b5812a540"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#ga935bb46e0b77b139a47c827b5812a540">spi_poll_for_activity</a> (const peripheral_descriptor_t *self)</td></tr>
<tr class="memdesc:ga935bb46e0b77b139a47c827b5812a540"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave poll for activity function. <br /></td></tr>
<tr class="separator:ga935bb46e0b77b139a47c827b5812a540"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaecf84e1b1e50672a4ab3790d82f266c5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaecf84e1b1e50672a4ab3790d82f266c5"></a>
static <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gaecf84e1b1e50672a4ab3790d82f266c5">spi_full_init</a> (const peripheral_descriptor_t *self, serial_byte_receive_func_t function)</td></tr>
<tr class="memdesc:gaecf84e1b1e50672a4ab3790d82f266c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave init function. <br /></td></tr>
<tr class="separator:gaecf84e1b1e50672a4ab3790d82f266c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa50f372c2ad13a8f3d95c6847b3d1e19"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa50f372c2ad13a8f3d95c6847b3d1e19"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gaa50f372c2ad13a8f3d95c6847b3d1e19">spi_full_shutdown</a> (const peripheral_descriptor_t *self)</td></tr>
<tr class="memdesc:gaa50f372c2ad13a8f3d95c6847b3d1e19"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave shutdown function. <br /></td></tr>
<tr class="separator:gaa50f372c2ad13a8f3d95c6847b3d1e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad0fc008edb345d07e6111748942995d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad0fc008edb345d07e6111748942995d9"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gad0fc008edb345d07e6111748942995d9">spi_data_source</a> (uint8_t *source_byte)</td></tr>
<tr class="memdesc:gad0fc008edb345d07e6111748942995d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave sending data function. <br /></td></tr>
<tr class="separator:gad0fc008edb345d07e6111748942995d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab8e167268f7fc9c92809effeb0158538"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab8e167268f7fc9c92809effeb0158538"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gab8e167268f7fc9c92809effeb0158538">spi_initial_data_sink</a> (uint8_t sink_byte, uint16_t instance)</td></tr>
<tr class="memdesc:gab8e167268f7fc9c92809effeb0158538"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave receiving first byte data function. <br /></td></tr>
<tr class="separator:gab8e167268f7fc9c92809effeb0158538"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae635f382442815adc825bad8c008384d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae635f382442815adc825bad8c008384d"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gae635f382442815adc825bad8c008384d">spi_data_sink</a> (uint8_t sink_byte, uint16_t instance)</td></tr>
<tr class="memdesc:gae635f382442815adc825bad8c008384d"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave receiving data function. <br /></td></tr>
<tr class="separator:gae635f382442815adc825bad8c008384d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ec956a47220fa034429eed4d3f9d8a9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5ec956a47220fa034429eed4d3f9d8a9"></a>
static <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#ga5ec956a47220fa034429eed4d3f9d8a9">spi_write</a> (const peripheral_descriptor_t *self, const uint8_t *buffer, uint32_t byteCount)</td></tr>
<tr class="memdesc:ga5ec956a47220fa034429eed4d3f9d8a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave writing data function. <br /></td></tr>
<tr class="separator:ga5ec956a47220fa034429eed4d3f9d8a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga251c63d064004c7c62ce44fa51649365"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga251c63d064004c7c62ce44fa51649365"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SPI_SetSystemIRQ</b> (uint32_t instance, <a class="el" href="group__peripherals.html#ga6bc5148daeee55537f6560fb00fb7453">PeripheralSystemIRQSetting</a> set)</td></tr>
<tr class="separator:ga251c63d064004c7c62ce44fa51649365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac9a21b0c730381fa464fe305810b3fea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac9a21b0c730381fa464fe305810b3fea"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>spi_slave_irq_handler</b> (uint32_t instance)</td></tr>
<tr class="separator:gac9a21b0c730381fa464fe305810b3fea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga47e5c0c756d2cbe7bc497bfc82905521"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga47e5c0c756d2cbe7bc497bfc82905521"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SPI0_IRQHandler</b> (void)</td></tr>
<tr class="separator:ga47e5c0c756d2cbe7bc497bfc82905521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9bbd8c17ce4f49adcca47d11f482aab6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9bbd8c17ce4f49adcca47d11f482aab6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SPI1_IRQHandler</b> (void)</td></tr>
<tr class="separator:ga9bbd8c17ce4f49adcca47d11f482aab6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68d8880cd80cb17a2501487c3d649ea1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga68d8880cd80cb17a2501487c3d649ea1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SPI2_IRQHandler</b> (void)</td></tr>
<tr class="separator:ga68d8880cd80cb17a2501487c3d649ea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:gac0704539e0ccc41db41d2c3c3ddc1cc5"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="group__peripheral.html#structperipheral__control__interface__t">peripheral_control_interface_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gac0704539e0ccc41db41d2c3c3ddc1cc5">g_spiControlInterface</a></td></tr>
<tr class="memdesc:gac0704539e0ccc41db41d2c3c3ddc1cc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave control interface information.  <a href="#gac0704539e0ccc41db41d2c3c3ddc1cc5">More...</a><br /></td></tr>
<tr class="separator:gac0704539e0ccc41db41d2c3c3ddc1cc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3551c3f44af0c3ea534c492861f4a1c"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="group__peripheral.html#structperipheral__byte__inteface__t">peripheral_byte_inteface_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gac3551c3f44af0c3ea534c492861f4a1c">g_spiByteInterface</a> = {.init = NULL, .write = <a class="el" href="group__spi__peripheral.html#ga5ec956a47220fa034429eed4d3f9d8a9">spi_write</a> }</td></tr>
<tr class="memdesc:gac3551c3f44af0c3ea534c492861f4a1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave byte interface information.  <a href="#gac3551c3f44af0c3ea534c492861f4a1c">More...</a><br /></td></tr>
<tr class="separator:gac3551c3f44af0c3ea534c492861f4a1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacb2095beaee6bbfd89515ac0af95f014"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__spi__peripheral.html#structspi__transfer__info__t">spi_transfer_info_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gacb2095beaee6bbfd89515ac0af95f014">s_spiInfo</a></td></tr>
<tr class="memdesc:gacb2095beaee6bbfd89515ac0af95f014"><td class="mdescLeft">&#160;</td><td class="mdescRight">Global state for the SPI slave peripheral interface.  <a href="#gacb2095beaee6bbfd89515ac0af95f014">More...</a><br /></td></tr>
<tr class="separator:gacb2095beaee6bbfd89515ac0af95f014"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf4ed711d6f5b8b478f5dfb58035edaa7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf4ed711d6f5b8b478f5dfb58035edaa7"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gaf4ed711d6f5b8b478f5dfb58035edaa7">s_spiActivity</a> [FSL_FEATURE_SOC_SPI_COUNT] = { false }</td></tr>
<tr class="memdesc:gaf4ed711d6f5b8b478f5dfb58035edaa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for detecting device activity. <br /></td></tr>
<tr class="separator:gaf4ed711d6f5b8b478f5dfb58035edaa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga53d24d402c6a957bb6691b61849e266d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga53d24d402c6a957bb6691b61849e266d"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>s_spiIntialized</b> [FSL_FEATURE_SOC_SPI_COUNT] = { false }</td></tr>
<tr class="separator:ga53d24d402c6a957bb6691b61849e266d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3059b7a405b97fb0d3e6aa77f8fe1bf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3059b7a405b97fb0d3e6aa77f8fe1bf"></a>
static serial_byte_receive_func_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#gac3059b7a405b97fb0d3e6aa77f8fe1bf">s_spi_app_data_sink_callback</a></td></tr>
<tr class="memdesc:gac3059b7a405b97fb0d3e6aa77f8fe1bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">SPI slave receiving data call back function. <br /></td></tr>
<tr class="separator:gac3059b7a405b97fb0d3e6aa77f8fe1bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga612c113de869af8a3735ec3c351d435e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga612c113de869af8a3735ec3c351d435e"></a>
static const uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>g_spiBaseAddr</b> [] = SPI_BASE_ADDRS</td></tr>
<tr class="separator:ga612c113de869af8a3735ec3c351d435e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5cf625f81488cec324d3804b7e0e044e"><td class="memItemLeft" align="right" valign="top">static const IRQn_Type&#160;</td><td class="memItemRight" valign="bottom"><b>spi_irq_ids</b> [FSL_FEATURE_SOC_SPI_COUNT]</td></tr>
<tr class="separator:ga5cf625f81488cec324d3804b7e0e044e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<p>SPI peripheral interface. </p>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structspi__transfer__info__t" id="structspi__transfer__info__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct spi_transfer_info_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>Synchronization state between SPI ISR and read/write functions. </p>
</div><table class="memberdecls">
<tr><td colspan="2"><h3>Data Fields</h3></td></tr>
<tr class="memitem:a3a4b30eae7b109b07563f393896fec3e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a4b30eae7b109b07563f393896fec3e"></a>
const uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#a3a4b30eae7b109b07563f393896fec3e">writeData</a></td></tr>
<tr class="memdesc:a3a4b30eae7b109b07563f393896fec3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The applications data to write. <br /></td></tr>
<tr class="separator:a3a4b30eae7b109b07563f393896fec3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65a142e258c9eb8e52e2d680356c4c53"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65a142e258c9eb8e52e2d680356c4c53"></a>
volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi__peripheral.html#a65a142e258c9eb8e52e2d680356c4c53">bytesToTransfer</a></td></tr>
<tr class="memdesc:a65a142e258c9eb8e52e2d680356c4c53"><td class="mdescLeft">&#160;</td><td class="mdescRight">The total number of bytes to be transmitted. <br /></td></tr>
<tr class="separator:a65a142e258c9eb8e52e2d680356c4c53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad973e4d60775400f9aca1b2d19d2e3ee"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad973e4d60775400f9aca1b2d19d2e3ee"></a>
void(*&#160;</td><td class="memItemRight" valign="bottom"><b>data_source</b> )(uint8_t *source_byte)</td></tr>
<tr class="separator:ad973e4d60775400f9aca1b2d19d2e3ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9300e91f2ff77ee3e1d8dc0e01dfb9a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9300e91f2ff77ee3e1d8dc0e01dfb9a"></a>
void(*&#160;</td><td class="memItemRight" valign="bottom"><b>data_sink</b> )(uint8_t sink_byte, uint16_t instance)</td></tr>
<tr class="separator:ac9300e91f2ff77ee3e1d8dc0e01dfb9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="gac3551c3f44af0c3ea534c492861f4a1c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="group__peripheral.html#structperipheral__byte__inteface__t">peripheral_byte_inteface_t</a> g_spiByteInterface = {.init = NULL, .write = <a class="el" href="group__spi__peripheral.html#ga5ec956a47220fa034429eed4d3f9d8a9">spi_write</a> }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SPI slave byte interface information. </p>
<p>Byte I/O interface for the SPI peripheral driver. </p>

</div>
</div>
<a class="anchor" id="gac0704539e0ccc41db41d2c3c3ddc1cc5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="group__peripheral.html#structperipheral__control__interface__t">peripheral_control_interface_t</a> g_spiControlInterface</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line">    .pollForActivity = <a class="code" href="group__spi__peripheral.html#ga935bb46e0b77b139a47c827b5812a540">spi_poll_for_activity</a>, .init = <a class="code" href="group__spi__peripheral.html#gaecf84e1b1e50672a4ab3790d82f266c5">spi_full_init</a>, .shutdown = <a class="code" href="group__spi__peripheral.html#gaa50f372c2ad13a8f3d95c6847b3d1e19">spi_full_shutdown</a>, .pump = 0</div><div class="line">}</div><div class="ttc" id="group__spi__peripheral_html_gaecf84e1b1e50672a4ab3790d82f266c5"><div class="ttname"><a href="group__spi__peripheral.html#gaecf84e1b1e50672a4ab3790d82f266c5">spi_full_init</a></div><div class="ttdeci">static status_t spi_full_init(const peripheral_descriptor_t *self, serial_byte_receive_func_t function)</div><div class="ttdoc">SPI slave init function. </div><div class="ttdef"><b>Definition:</b> spi_peripheral_interface.c:214</div></div>
<div class="ttc" id="group__spi__peripheral_html_gaa50f372c2ad13a8f3d95c6847b3d1e19"><div class="ttname"><a href="group__spi__peripheral.html#gaa50f372c2ad13a8f3d95c6847b3d1e19">spi_full_shutdown</a></div><div class="ttdeci">static void spi_full_shutdown(const peripheral_descriptor_t *self)</div><div class="ttdoc">SPI slave shutdown function. </div><div class="ttdef"><b>Definition:</b> spi_peripheral_interface.c:249</div></div>
<div class="ttc" id="group__spi__peripheral_html_ga935bb46e0b77b139a47c827b5812a540"><div class="ttname"><a href="group__spi__peripheral.html#ga935bb46e0b77b139a47c827b5812a540">spi_poll_for_activity</a></div><div class="ttdeci">static bool spi_poll_for_activity(const peripheral_descriptor_t *self)</div><div class="ttdoc">SPI slave poll for activity function. </div><div class="ttdef"><b>Definition:</b> spi_peripheral_interface.c:155</div></div>
</div><!-- fragment -->
<p>SPI slave control interface information. </p>
<p>Control interface for the SPI peripheral driver. </p>

</div>
</div>
<a class="anchor" id="gacb2095beaee6bbfd89515ac0af95f014"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__spi__peripheral.html#structspi__transfer__info__t">spi_transfer_info_t</a> s_spiInfo</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line">    .writeData = 0, .bytesToTransfer = 0, .data_source = <a class="code" href="group__spi__peripheral.html#gad0fc008edb345d07e6111748942995d9">spi_data_source</a>, .data_sink = <a class="code" href="group__spi__peripheral.html#gab8e167268f7fc9c92809effeb0158538">spi_initial_data_sink</a></div><div class="line">}</div><div class="ttc" id="group__spi__peripheral_html_gab8e167268f7fc9c92809effeb0158538"><div class="ttname"><a href="group__spi__peripheral.html#gab8e167268f7fc9c92809effeb0158538">spi_initial_data_sink</a></div><div class="ttdeci">static void spi_initial_data_sink(uint8_t sink_byte, uint16_t instance)</div><div class="ttdoc">SPI slave receiving first byte data function. </div><div class="ttdef"><b>Definition:</b> spi_peripheral_interface.c:187</div></div>
<div class="ttc" id="group__spi__peripheral_html_gad0fc008edb345d07e6111748942995d9"><div class="ttname"><a href="group__spi__peripheral.html#gad0fc008edb345d07e6111748942995d9">spi_data_source</a></div><div class="ttdeci">static void spi_data_source(uint8_t *source_byte)</div><div class="ttdoc">SPI slave sending data function. </div><div class="ttdef"><b>Definition:</b> spi_peripheral_interface.c:166</div></div>
</div><!-- fragment -->
<p>Global state for the SPI slave peripheral interface. </p>

</div>
</div>
<a class="anchor" id="ga5cf625f81488cec324d3804b7e0e044e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const IRQn_Type spi_irq_ids[FSL_FEATURE_SOC_SPI_COUNT]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line"><span class="preprocessor">#if defined(SPI0)</span></div><div class="line">    SPI0_IRQn,</div><div class="line"><span class="preprocessor">#else</span></div><div class="line">    SPI_IRQn,</div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"><span class="preprocessor">#if (FSL_FEATURE_SOC_SPI_COUNT &gt; 1)</span></div><div class="line">    SPI1_IRQn,</div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"><span class="preprocessor">#if (FSL_FEATURE_SOC_SPI_COUNT &gt; 2)</span></div><div class="line">    SPI2_IRQn,</div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"><span class="preprocessor">}</span></div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
